package com.codejoys.monitor.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DeviceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DeviceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSnIsNull() {
            addCriterion("sn is null");
            return (Criteria) this;
        }

        public Criteria andSnIsNotNull() {
            addCriterion("sn is not null");
            return (Criteria) this;
        }

        public Criteria andSnEqualTo(String value) {
            addCriterion("sn =", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotEqualTo(String value) {
            addCriterion("sn <>", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnGreaterThan(String value) {
            addCriterion("sn >", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnGreaterThanOrEqualTo(String value) {
            addCriterion("sn >=", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnLessThan(String value) {
            addCriterion("sn <", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnLessThanOrEqualTo(String value) {
            addCriterion("sn <=", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnLike(String value) {
            addCriterion("sn like", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotLike(String value) {
            addCriterion("sn not like", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnIn(List<String> values) {
            addCriterion("sn in", values, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotIn(List<String> values) {
            addCriterion("sn not in", values, "sn");
            return (Criteria) this;
        }

        public Criteria andSnBetween(String value1, String value2) {
            addCriterion("sn between", value1, value2, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotBetween(String value1, String value2) {
            addCriterion("sn not between", value1, value2, "sn");
            return (Criteria) this;
        }

        public Criteria andModelIsNull() {
            addCriterion("model is null");
            return (Criteria) this;
        }

        public Criteria andModelIsNotNull() {
            addCriterion("model is not null");
            return (Criteria) this;
        }

        public Criteria andModelEqualTo(String value) {
            addCriterion("model =", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotEqualTo(String value) {
            addCriterion("model <>", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelGreaterThan(String value) {
            addCriterion("model >", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelGreaterThanOrEqualTo(String value) {
            addCriterion("model >=", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLessThan(String value) {
            addCriterion("model <", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLessThanOrEqualTo(String value) {
            addCriterion("model <=", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLike(String value) {
            addCriterion("model like", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotLike(String value) {
            addCriterion("model not like", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelIn(List<String> values) {
            addCriterion("model in", values, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotIn(List<String> values) {
            addCriterion("model not in", values, "model");
            return (Criteria) this;
        }

        public Criteria andModelBetween(String value1, String value2) {
            addCriterion("model between", value1, value2, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotBetween(String value1, String value2) {
            addCriterion("model not between", value1, value2, "model");
            return (Criteria) this;
        }

        public Criteria andChannelIdIsNull() {
            addCriterion("channel_id is null");
            return (Criteria) this;
        }

        public Criteria andChannelIdIsNotNull() {
            addCriterion("channel_id is not null");
            return (Criteria) this;
        }

        public Criteria andChannelIdEqualTo(Integer value) {
            addCriterion("channel_id =", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotEqualTo(Integer value) {
            addCriterion("channel_id <>", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThan(Integer value) {
            addCriterion("channel_id >", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("channel_id >=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThan(Integer value) {
            addCriterion("channel_id <", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThanOrEqualTo(Integer value) {
            addCriterion("channel_id <=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdIn(List<Integer> values) {
            addCriterion("channel_id in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotIn(List<Integer> values) {
            addCriterion("channel_id not in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdBetween(Integer value1, Integer value2) {
            addCriterion("channel_id between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("channel_id not between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andAgingTimesIsNull() {
            addCriterion("aging_times is null");
            return (Criteria) this;
        }

        public Criteria andAgingTimesIsNotNull() {
            addCriterion("aging_times is not null");
            return (Criteria) this;
        }

        public Criteria andAgingTimesEqualTo(Integer value) {
            addCriterion("aging_times =", value, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesNotEqualTo(Integer value) {
            addCriterion("aging_times <>", value, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesGreaterThan(Integer value) {
            addCriterion("aging_times >", value, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("aging_times >=", value, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesLessThan(Integer value) {
            addCriterion("aging_times <", value, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesLessThanOrEqualTo(Integer value) {
            addCriterion("aging_times <=", value, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesIn(List<Integer> values) {
            addCriterion("aging_times in", values, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesNotIn(List<Integer> values) {
            addCriterion("aging_times not in", values, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesBetween(Integer value1, Integer value2) {
            addCriterion("aging_times between", value1, value2, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("aging_times not between", value1, value2, "agingTimes");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeIsNull() {
            addCriterion("aging_start_time is null");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeIsNotNull() {
            addCriterion("aging_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeEqualTo(Date value) {
            addCriterion("aging_start_time =", value, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeNotEqualTo(Date value) {
            addCriterion("aging_start_time <>", value, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeGreaterThan(Date value) {
            addCriterion("aging_start_time >", value, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("aging_start_time >=", value, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeLessThan(Date value) {
            addCriterion("aging_start_time <", value, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("aging_start_time <=", value, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeIn(List<Date> values) {
            addCriterion("aging_start_time in", values, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeNotIn(List<Date> values) {
            addCriterion("aging_start_time not in", values, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeBetween(Date value1, Date value2) {
            addCriterion("aging_start_time between", value1, value2, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("aging_start_time not between", value1, value2, "agingStartTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeIsNull() {
            addCriterion("aging_end_time is null");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeIsNotNull() {
            addCriterion("aging_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeEqualTo(Date value) {
            addCriterion("aging_end_time =", value, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeNotEqualTo(Date value) {
            addCriterion("aging_end_time <>", value, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeGreaterThan(Date value) {
            addCriterion("aging_end_time >", value, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("aging_end_time >=", value, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeLessThan(Date value) {
            addCriterion("aging_end_time <", value, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("aging_end_time <=", value, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeIn(List<Date> values) {
            addCriterion("aging_end_time in", values, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeNotIn(List<Date> values) {
            addCriterion("aging_end_time not in", values, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeBetween(Date value1, Date value2) {
            addCriterion("aging_end_time between", value1, value2, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("aging_end_time not between", value1, value2, "agingEndTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeIsNull() {
            addCriterion("aging_stop_time is null");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeIsNotNull() {
            addCriterion("aging_stop_time is not null");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeEqualTo(Date value) {
            addCriterion("aging_stop_time =", value, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeNotEqualTo(Date value) {
            addCriterion("aging_stop_time <>", value, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeGreaterThan(Date value) {
            addCriterion("aging_stop_time >", value, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("aging_stop_time >=", value, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeLessThan(Date value) {
            addCriterion("aging_stop_time <", value, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeLessThanOrEqualTo(Date value) {
            addCriterion("aging_stop_time <=", value, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeIn(List<Date> values) {
            addCriterion("aging_stop_time in", values, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeNotIn(List<Date> values) {
            addCriterion("aging_stop_time not in", values, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeBetween(Date value1, Date value2) {
            addCriterion("aging_stop_time between", value1, value2, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andAgingStopTimeNotBetween(Date value1, Date value2) {
            addCriterion("aging_stop_time not between", value1, value2, "agingStopTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNull() {
            addCriterion("offline_time is null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNotNull() {
            addCriterion("offline_time is not null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeEqualTo(Date value) {
            addCriterion("offline_time =", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotEqualTo(Date value) {
            addCriterion("offline_time <>", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThan(Date value) {
            addCriterion("offline_time >", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("offline_time >=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThan(Date value) {
            addCriterion("offline_time <", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThanOrEqualTo(Date value) {
            addCriterion("offline_time <=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIn(List<Date> values) {
            addCriterion("offline_time in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotIn(List<Date> values) {
            addCriterion("offline_time not in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeBetween(Date value1, Date value2) {
            addCriterion("offline_time between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotBetween(Date value1, Date value2) {
            addCriterion("offline_time not between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageIsNull() {
            addCriterion("preset_voltage is null");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageIsNotNull() {
            addCriterion("preset_voltage is not null");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageEqualTo(BigDecimal value) {
            addCriterion("preset_voltage =", value, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageNotEqualTo(BigDecimal value) {
            addCriterion("preset_voltage <>", value, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageGreaterThan(BigDecimal value) {
            addCriterion("preset_voltage >", value, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("preset_voltage >=", value, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageLessThan(BigDecimal value) {
            addCriterion("preset_voltage <", value, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageLessThanOrEqualTo(BigDecimal value) {
            addCriterion("preset_voltage <=", value, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageIn(List<BigDecimal> values) {
            addCriterion("preset_voltage in", values, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageNotIn(List<BigDecimal> values) {
            addCriterion("preset_voltage not in", values, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("preset_voltage between", value1, value2, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetVoltageNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("preset_voltage not between", value1, value2, "presetVoltage");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentIsNull() {
            addCriterion("preset_current is null");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentIsNotNull() {
            addCriterion("preset_current is not null");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentEqualTo(BigDecimal value) {
            addCriterion("preset_current =", value, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentNotEqualTo(BigDecimal value) {
            addCriterion("preset_current <>", value, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentGreaterThan(BigDecimal value) {
            addCriterion("preset_current >", value, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("preset_current >=", value, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentLessThan(BigDecimal value) {
            addCriterion("preset_current <", value, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentLessThanOrEqualTo(BigDecimal value) {
            addCriterion("preset_current <=", value, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentIn(List<BigDecimal> values) {
            addCriterion("preset_current in", values, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentNotIn(List<BigDecimal> values) {
            addCriterion("preset_current not in", values, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("preset_current between", value1, value2, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetCurrentNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("preset_current not between", value1, value2, "presetCurrent");
            return (Criteria) this;
        }

        public Criteria andPresetDurationIsNull() {
            addCriterion("preset_duration is null");
            return (Criteria) this;
        }

        public Criteria andPresetDurationIsNotNull() {
            addCriterion("preset_duration is not null");
            return (Criteria) this;
        }

        public Criteria andPresetDurationEqualTo(Integer value) {
            addCriterion("preset_duration =", value, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationNotEqualTo(Integer value) {
            addCriterion("preset_duration <>", value, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationGreaterThan(Integer value) {
            addCriterion("preset_duration >", value, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationGreaterThanOrEqualTo(Integer value) {
            addCriterion("preset_duration >=", value, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationLessThan(Integer value) {
            addCriterion("preset_duration <", value, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationLessThanOrEqualTo(Integer value) {
            addCriterion("preset_duration <=", value, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationIn(List<Integer> values) {
            addCriterion("preset_duration in", values, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationNotIn(List<Integer> values) {
            addCriterion("preset_duration not in", values, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationBetween(Integer value1, Integer value2) {
            addCriterion("preset_duration between", value1, value2, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andPresetDurationNotBetween(Integer value1, Integer value2) {
            addCriterion("preset_duration not between", value1, value2, "presetDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationIsNull() {
            addCriterion("actual_duration is null");
            return (Criteria) this;
        }

        public Criteria andActualDurationIsNotNull() {
            addCriterion("actual_duration is not null");
            return (Criteria) this;
        }

        public Criteria andActualDurationEqualTo(Integer value) {
            addCriterion("actual_duration =", value, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationNotEqualTo(Integer value) {
            addCriterion("actual_duration <>", value, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationGreaterThan(Integer value) {
            addCriterion("actual_duration >", value, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationGreaterThanOrEqualTo(Integer value) {
            addCriterion("actual_duration >=", value, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationLessThan(Integer value) {
            addCriterion("actual_duration <", value, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationLessThanOrEqualTo(Integer value) {
            addCriterion("actual_duration <=", value, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationIn(List<Integer> values) {
            addCriterion("actual_duration in", values, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationNotIn(List<Integer> values) {
            addCriterion("actual_duration not in", values, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationBetween(Integer value1, Integer value2) {
            addCriterion("actual_duration between", value1, value2, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andActualDurationNotBetween(Integer value1, Integer value2) {
            addCriterion("actual_duration not between", value1, value2, "actualDuration");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperIsNull() {
            addCriterion("voltage_upper is null");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperIsNotNull() {
            addCriterion("voltage_upper is not null");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperEqualTo(BigDecimal value) {
            addCriterion("voltage_upper =", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperNotEqualTo(BigDecimal value) {
            addCriterion("voltage_upper <>", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperGreaterThan(BigDecimal value) {
            addCriterion("voltage_upper >", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_upper >=", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperLessThan(BigDecimal value) {
            addCriterion("voltage_upper <", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperLessThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_upper <=", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperIn(List<BigDecimal> values) {
            addCriterion("voltage_upper in", values, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperNotIn(List<BigDecimal> values) {
            addCriterion("voltage_upper not in", values, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_upper between", value1, value2, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_upper not between", value1, value2, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerIsNull() {
            addCriterion("voltage_lower is null");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerIsNotNull() {
            addCriterion("voltage_lower is not null");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerEqualTo(BigDecimal value) {
            addCriterion("voltage_lower =", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerNotEqualTo(BigDecimal value) {
            addCriterion("voltage_lower <>", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerGreaterThan(BigDecimal value) {
            addCriterion("voltage_lower >", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_lower >=", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerLessThan(BigDecimal value) {
            addCriterion("voltage_lower <", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerLessThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_lower <=", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerIn(List<BigDecimal> values) {
            addCriterion("voltage_lower in", values, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerNotIn(List<BigDecimal> values) {
            addCriterion("voltage_lower not in", values, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_lower between", value1, value2, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_lower not between", value1, value2, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperIsNull() {
            addCriterion("current_upper is null");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperIsNotNull() {
            addCriterion("current_upper is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperEqualTo(BigDecimal value) {
            addCriterion("current_upper =", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperNotEqualTo(BigDecimal value) {
            addCriterion("current_upper <>", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperGreaterThan(BigDecimal value) {
            addCriterion("current_upper >", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current_upper >=", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperLessThan(BigDecimal value) {
            addCriterion("current_upper <", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current_upper <=", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperIn(List<BigDecimal> values) {
            addCriterion("current_upper in", values, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperNotIn(List<BigDecimal> values) {
            addCriterion("current_upper not in", values, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_upper between", value1, value2, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_upper not between", value1, value2, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerIsNull() {
            addCriterion("current_lower is null");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerIsNotNull() {
            addCriterion("current_lower is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerEqualTo(BigDecimal value) {
            addCriterion("current_lower =", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerNotEqualTo(BigDecimal value) {
            addCriterion("current_lower <>", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerGreaterThan(BigDecimal value) {
            addCriterion("current_lower >", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current_lower >=", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerLessThan(BigDecimal value) {
            addCriterion("current_lower <", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current_lower <=", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerIn(List<BigDecimal> values) {
            addCriterion("current_lower in", values, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerNotIn(List<BigDecimal> values) {
            addCriterion("current_lower not in", values, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_lower between", value1, value2, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_lower not between", value1, value2, "currentLower");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIsRemovedIsNull() {
            addCriterion("is_removed is null");
            return (Criteria) this;
        }

        public Criteria andIsRemovedIsNotNull() {
            addCriterion("is_removed is not null");
            return (Criteria) this;
        }

        public Criteria andIsRemovedEqualTo(Byte value) {
            addCriterion("is_removed =", value, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedNotEqualTo(Byte value) {
            addCriterion("is_removed <>", value, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedGreaterThan(Byte value) {
            addCriterion("is_removed >", value, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_removed >=", value, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedLessThan(Byte value) {
            addCriterion("is_removed <", value, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedLessThanOrEqualTo(Byte value) {
            addCriterion("is_removed <=", value, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedIn(List<Byte> values) {
            addCriterion("is_removed in", values, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedNotIn(List<Byte> values) {
            addCriterion("is_removed not in", values, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedBetween(Byte value1, Byte value2) {
            addCriterion("is_removed between", value1, value2, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andIsRemovedNotBetween(Byte value1, Byte value2) {
            addCriterion("is_removed not between", value1, value2, "isRemoved");
            return (Criteria) this;
        }

        public Criteria andAgingResultIsNull() {
            addCriterion("aging_result is null");
            return (Criteria) this;
        }

        public Criteria andAgingResultIsNotNull() {
            addCriterion("aging_result is not null");
            return (Criteria) this;
        }

        public Criteria andAgingResultEqualTo(Byte value) {
            addCriterion("aging_result =", value, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultNotEqualTo(Byte value) {
            addCriterion("aging_result <>", value, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultGreaterThan(Byte value) {
            addCriterion("aging_result >", value, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultGreaterThanOrEqualTo(Byte value) {
            addCriterion("aging_result >=", value, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultLessThan(Byte value) {
            addCriterion("aging_result <", value, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultLessThanOrEqualTo(Byte value) {
            addCriterion("aging_result <=", value, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultIn(List<Byte> values) {
            addCriterion("aging_result in", values, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultNotIn(List<Byte> values) {
            addCriterion("aging_result not in", values, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultBetween(Byte value1, Byte value2) {
            addCriterion("aging_result between", value1, value2, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingResultNotBetween(Byte value1, Byte value2) {
            addCriterion("aging_result not between", value1, value2, "agingResult");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeIsNull() {
            addCriterion("aging_error_code is null");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeIsNotNull() {
            addCriterion("aging_error_code is not null");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeEqualTo(Integer value) {
            addCriterion("aging_error_code =", value, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeNotEqualTo(Integer value) {
            addCriterion("aging_error_code <>", value, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeGreaterThan(Integer value) {
            addCriterion("aging_error_code >", value, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("aging_error_code >=", value, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeLessThan(Integer value) {
            addCriterion("aging_error_code <", value, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeLessThanOrEqualTo(Integer value) {
            addCriterion("aging_error_code <=", value, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeIn(List<Integer> values) {
            addCriterion("aging_error_code in", values, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeNotIn(List<Integer> values) {
            addCriterion("aging_error_code not in", values, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeBetween(Integer value1, Integer value2) {
            addCriterion("aging_error_code between", value1, value2, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andAgingErrorCodeNotBetween(Integer value1, Integer value2) {
            addCriterion("aging_error_code not between", value1, value2, "agingErrorCode");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkIsNull() {
            addCriterion("need_remark is null");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkIsNotNull() {
            addCriterion("need_remark is not null");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkEqualTo(Byte value) {
            addCriterion("need_remark =", value, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkNotEqualTo(Byte value) {
            addCriterion("need_remark <>", value, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkGreaterThan(Byte value) {
            addCriterion("need_remark >", value, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkGreaterThanOrEqualTo(Byte value) {
            addCriterion("need_remark >=", value, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkLessThan(Byte value) {
            addCriterion("need_remark <", value, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkLessThanOrEqualTo(Byte value) {
            addCriterion("need_remark <=", value, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkIn(List<Byte> values) {
            addCriterion("need_remark in", values, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkNotIn(List<Byte> values) {
            addCriterion("need_remark not in", values, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkBetween(Byte value1, Byte value2) {
            addCriterion("need_remark between", value1, value2, "needRemark");
            return (Criteria) this;
        }

        public Criteria andNeedRemarkNotBetween(Byte value1, Byte value2) {
            addCriterion("need_remark not between", value1, value2, "needRemark");
            return (Criteria) this;
        }

        public Criteria andErrorTimesIsNull() {
            addCriterion("error_times is null");
            return (Criteria) this;
        }

        public Criteria andErrorTimesIsNotNull() {
            addCriterion("error_times is not null");
            return (Criteria) this;
        }

        public Criteria andErrorTimesEqualTo(Integer value) {
            addCriterion("error_times =", value, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesNotEqualTo(Integer value) {
            addCriterion("error_times <>", value, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesGreaterThan(Integer value) {
            addCriterion("error_times >", value, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("error_times >=", value, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesLessThan(Integer value) {
            addCriterion("error_times <", value, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesLessThanOrEqualTo(Integer value) {
            addCriterion("error_times <=", value, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesIn(List<Integer> values) {
            addCriterion("error_times in", values, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesNotIn(List<Integer> values) {
            addCriterion("error_times not in", values, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesBetween(Integer value1, Integer value2) {
            addCriterion("error_times between", value1, value2, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andErrorTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("error_times not between", value1, value2, "errorTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesIsNull() {
            addCriterion("restart_times is null");
            return (Criteria) this;
        }

        public Criteria andRestartTimesIsNotNull() {
            addCriterion("restart_times is not null");
            return (Criteria) this;
        }

        public Criteria andRestartTimesEqualTo(Integer value) {
            addCriterion("restart_times =", value, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesNotEqualTo(Integer value) {
            addCriterion("restart_times <>", value, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesGreaterThan(Integer value) {
            addCriterion("restart_times >", value, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("restart_times >=", value, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesLessThan(Integer value) {
            addCriterion("restart_times <", value, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesLessThanOrEqualTo(Integer value) {
            addCriterion("restart_times <=", value, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesIn(List<Integer> values) {
            addCriterion("restart_times in", values, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesNotIn(List<Integer> values) {
            addCriterion("restart_times not in", values, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesBetween(Integer value1, Integer value2) {
            addCriterion("restart_times between", value1, value2, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andRestartTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("restart_times not between", value1, value2, "restartTimes");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(Integer value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(Integer value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(Integer value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(Integer value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(Integer value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(Integer value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<Integer> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<Integer> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(Integer value1, Integer value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(Integer value1, Integer value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNull() {
            addCriterion("created is null");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNotNull() {
            addCriterion("created is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedEqualTo(Date value) {
            addCriterion("created =", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotEqualTo(Date value) {
            addCriterion("created <>", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThan(Date value) {
            addCriterion("created >", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("created >=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThan(Date value) {
            addCriterion("created <", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThanOrEqualTo(Date value) {
            addCriterion("created <=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedIn(List<Date> values) {
            addCriterion("created in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotIn(List<Date> values) {
            addCriterion("created not in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedBetween(Date value1, Date value2) {
            addCriterion("created between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotBetween(Date value1, Date value2) {
            addCriterion("created not between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIsNull() {
            addCriterion("updated_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIsNotNull() {
            addCriterion("updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedByEqualTo(Integer value) {
            addCriterion("updated_by =", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotEqualTo(Integer value) {
            addCriterion("updated_by <>", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByGreaterThan(Integer value) {
            addCriterion("updated_by >", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByGreaterThanOrEqualTo(Integer value) {
            addCriterion("updated_by >=", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByLessThan(Integer value) {
            addCriterion("updated_by <", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByLessThanOrEqualTo(Integer value) {
            addCriterion("updated_by <=", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIn(List<Integer> values) {
            addCriterion("updated_by in", values, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotIn(List<Integer> values) {
            addCriterion("updated_by not in", values, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByBetween(Integer value1, Integer value2) {
            addCriterion("updated_by between", value1, value2, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotBetween(Integer value1, Integer value2) {
            addCriterion("updated_by not between", value1, value2, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNull() {
            addCriterion("updated is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNotNull() {
            addCriterion("updated is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedEqualTo(Date value) {
            addCriterion("updated =", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotEqualTo(Date value) {
            addCriterion("updated <>", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThan(Date value) {
            addCriterion("updated >", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
            addCriterion("updated >=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThan(Date value) {
            addCriterion("updated <", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThanOrEqualTo(Date value) {
            addCriterion("updated <=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedIn(List<Date> values) {
            addCriterion("updated in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotIn(List<Date> values) {
            addCriterion("updated not in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedBetween(Date value1, Date value2) {
            addCriterion("updated between", value1, value2, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotBetween(Date value1, Date value2) {
            addCriterion("updated not between", value1, value2, "updated");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Byte value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Byte value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Byte value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Byte value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Byte value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Byte value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Byte> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Byte> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Byte value1, Byte value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Byte value1, Byte value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}